﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="CourseManager.View.Main" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<%@ Register Src="UControls/Header.ascx" TagName="Header" TagPrefix="UC" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
	
    <ext:ResourceManager runat="server" ID="Em1" />
    <ext:Viewport runat="server" ID="viewPort" Layout="Fit">
		<Items>
			<ext:Panel runat="server" Border="false" Header="false">
				<Items>
					<ext:RowLayout runat="server">
						<Rows>
							<ext:LayoutRow>
								<ext:Panel ID="pnlHead" runat="server" Header="false" Border="false" Height="50">
                                    <Content>
										<UC:Header ID="CHeader" runat="server" />
                                    </Content>
                                </ext:Panel>
							</ext:LayoutRow>

							 <ext:LayoutRow RowHeight="1">
                                <ext:Panel ID="pnlMainFrame" runat="server" Header="false" Border="false" Layout="Fit">
                                    <TopBar>
                                        <ext:Toolbar runat="server" ID="menuBar" Height="25" Visible="false" />
                                    </TopBar>
                                    <Content>
                                        <ext:Panel runat="server" ID="pnlMain" Header="false" Border="false">
                                            <AutoLoad ShowMask="true" MaskMsg="正在加载，请稍候..." />
                                        </ext:Panel>
                                    </Content>
                                </ext:Panel>
                            </ext:LayoutRow>
						</Rows>
					</ext:RowLayout>
				</Items>
				 <BottomBar>
                    <ext:StatusBar runat="server" ID="infoBar" StatusAlign="right">
                        <Items>
                            <ext:ToolbarTextItem runat="server"  ID="txtUserInfo" />
                            <ext:ToolbarFill runat="server" />
                            <ext:ToolbarTextItem runat="server" ID="txtTimeInfo" />
                            <ext:Hidden runat="server" ID="hidserverTime" />
                        </Items>
                    </ext:StatusBar>
                </BottomBar>
			</ext:Panel>
		</Items>
	</ext:Viewport>
	 <ext:TaskManager runat="server" ID="tm">
        <Tasks>
            <ext:Task Interval="1000" >
                <Listeners>
                    <Update Handler="var a=new Date(#{hidserverTime}.value.replace('-', '/'));  #{txtTimeInfo}.setText('当前时间：'+a.dateFormat('Y-m-d H:i:s'));a.setTime(a.getTime()+1000); #{hidserverTime}.value=a.toString();" />          
                </Listeners>
            </ext:Task>
        </Tasks>
    </ext:TaskManager>

</body>
</html>
